import Router from "koa-router";
import { loginValidator, registerValidator } from "../validator/passport";
import { login, register } from "../controller/passport";

const router = new Router();

// 登录
router.post("/login", ...loginValidator, login);

// 注册
router.post("/register", ...registerValidator, register);

export { router as default };
